package com.emo.wowoblog.service;


import com.emo.wowoblog.entity.Article;
import com.emo.wowoblog.utils.Pager;
import com.emo.wowoblog.view.ArticleView;

import java.util.List;

public interface ArticleService  {

     public void save(Article article);

     //查询所有博文
     List<ArticleView> queryAllArticles();

     //根据编号查询单个博文
     ArticleView queryArticleViewByAid(Integer aid);

     //查询所有博文带分页
     List<ArticleView> queryAllArticlePager(Pager<ArticleView> pager);

     //按类别查找所有博文，不带分页
     List<ArticleView> queryAllArticleByCatalogName(String catalogName);

     //按提问类型查询所有博文，不带分页
     List<ArticleView> queryAllArticleByQuestionType(String questionType);

     //按类别查找所有博文，带分页
     List<ArticleView> queryArticlePagerByCatalogName(String catalogName, Pager<ArticleView> pager);

     //按提问类型查找所有博文，带分页
     List<ArticleView> queryArticlePagerByQuestionType(String questionType, Pager<ArticleView> pager);

}
